# coding=utf-8
from sqlalchemy import Column, Integer, BigInteger, Float

from db_models.orm_base import BaseOrmClass


class ParamEstimateDetails(BaseOrmClass):
    '''
    模型(表)备注:参数评估详情
    '''
    __tablename__ = 'param_estimate_details'

    '''      '''
    id = Column(BigInteger(), primary_key=True)

    '''   param_estimate.id   '''
    pid = Column(Integer(), nullable=False)

    '''   问题ID   '''
    qid = Column(BigInteger(), nullable=False)

    '''   评估前的区分度   '''
    a_old = Column(Float(), nullable=False)

    '''   评估前的难度   '''
    b_old = Column(Float(), nullable=False)

    '''   评估后的区分度   '''
    a_new = Column(Float(), nullable=False)

    '''   评估后的区难度   '''
    b_new = Column(Float(), nullable=False)

    def exclude(self): return ()
